package cn.darkhorse.ticket.basis.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 产品分类
 * </p>
 *
 * @author wangxinghui
 * @since 2024-01-09
 */
@Getter
@Setter
  @TableName("ticket_product_type")
@ApiModel(value = "BasisProductType对象", description = "产品分类")
public class TicketProductType implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @Size(min = 1,max = 20,message = "编码长度不能超过20个字符")
      @ApiModelProperty("编码")
      private String code;

      @ApiModelProperty("名称")
      private String name;
      
      @ApiModelProperty("是否自动生成")
      private Boolean isAutomatically;
  
  
      @ApiModelProperty("备注|说明")
      private String remarks;

      @ApiModelProperty("系统创建时间")
      private LocalDateTime gmtCreate;

      @ApiModelProperty("系统修改最新时间")
      private LocalDateTime gmtModified;


}
